-- GENERATED SPELL FOR [Dust Howler] --


function spell0_17158(pUnit, Event) --@Howling Dust,n/a--
pUnit:FullCastSpellOnTarget(32017,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17158', 16000, 1)
end

function Sorts_17158(pUnit, Event)
local choix_sorts_17158 = math.random(0, 0)
if choix_sorts_17158 == 0 then
pUnit:RegisterEvent('spell0_17158', 1, 1)
end
end

function mob17158_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17158', math.random(1500, 3000), 1)
end

function mob17158_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17158_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17158_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17158, 1, 'mob17158_Action')
RegisterUnitEvent(17158, 2, 'mob17158_Leave')
RegisterUnitEvent(17158, 3, 'mob17158_Kill')
RegisterUnitEvent(17158, 4, 'mob17158_Die')
